home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / libconv / EXAMPLES / Makefile < prev   
Encoding:
Makefile  |  1994-08-02  |  1.1 KB  |  82 lines

  1. #!smake
  2.  
  3. #
  4. # Hardware Specifics
  5. #
  6.  
  7. # Find out the kind of machine you are on.
  8. WHICHIP != uname -m
  9.  
  10. # Set -mp flag for Power Series.
  11. #if ( $(WHICHIP) == "IP7" )
  12. MP = -mp
  13. #else
  14. MP =
  15. #endif
  16.  
  17. # Set the -mips2 flag for the R4000 machines.
  18. #if ( $(WHICHIP) == "IP17" | $(WHICHIP) == "IP20" )
  19. MIPS = -mips2
  20. #else
  21. MIPS =
  22. #endif
  23.  
  24. #
  25. # Standard Compilation Flags
  26. #
  27.  
  28. OPTIMIZER=-O
  29.  
  30. FFLAGS=$(OPTIMIZER) $(MIPS) $(MP)
  31. CFLAGS=$(OPTIMIZER) $(MIPS)
  32.  
  33. FC=/usr/bin/f77
  34. CC=/usr/bin/cc
  35.  
  36. FFC = $(FC) $(FFLAGS)
  37. CFC = $(CC) $(CFLAGS)
  38.  
  39. #
  40. # Library used.
  41. #
  42.  
  43. #if( ${MIPS} == "-mips2" )
  44. #if (${MP} == "-mp")
  45. LIB_DIR= ../mp_mips2
  46. #else
  47. LIB_DIR= ../mips2
  48. #endif
  49. #elif (${MP} == "-mp")
  50. LIB_DIR= ../mp_mips1
  51. #else
  52. LIB_DIR= ../mips1
  53. #endif
  54.  
  55. LDLIBS= -lm $(LIB_DIR)/libconv.a
  56. TARGETS= fex1 fex2 fex3 cex1 cex2 cex3
  57.  
  58. all: $(TARGETS)
  59.  
  60. clean :
  61.     rm -f *.o *.*K* core
  62.  
  63. rmtargets:
  64.     rm -f $(TARGETS)
  65.  
  66. clobber: 
  67.     make -i clean
  68.     rm -f $(TARGETS)
  69.  
  70. $(TARGETS): $$@.o
  71.     $(FFC) -mp -o $@ $*.o $(LDLIBS)
  72.  
  73. .f.o:    
  74.     $(FFC) -c $<
  75. .c.o:    
  76.     $(CFC) -c $<
  77.  
  78. # DO NOT DELETE THIS LINE -- make depend depends on it.
  79.  
  80. ex2.o: /usr/include/stdio.h /usr/include/math.h /usr/include/svr4_math.h
  81. ex2.o: conv.h
  82.